package client;
import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JTextArea;

public class OrderGUI  extends JFrame {

	private static final long serialVersionUID = 1211696309667440214L;
	private JTextArea textArea;
	public OrderGUI(User user)
	{
		super("Welcome to RMI-Store");
		setLocation(500,300);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		getContentPane().setLayout(new BorderLayout());
		textArea = new JTextArea("Bestelling is geaccepteerd!\nPrettige dag");
		textArea.append("\nTot ziens " + user.getUserName());

		getContentPane().add(BorderLayout.CENTER,textArea);
		setSize(300, 400);
		setVisible(true);
	}
}
